//
//  NSString+SCTimeFormat.h
//  Shuaiche
//
//  Created by dangshuai on 2019/2/1.
//  Copyright © 2019 zzs. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (SCTimeFormat)


/**
 * 格式化时间转换结果
 * 小时内  >>> xx分钟
 * 天内    >>> xx小时
 * 天以上  >>> xx月份dd日
 * @return String
 */
- (NSString *)formatStringByHourMiniteOrDayFromFormat:(NSString *)from;

- (NSInteger)dayIntevalStringFromFormat:(NSString *)from;

- (NSInteger)secondsIntevalStringFromFormat:(NSString *)from;

- (NSInteger)yearIntevalStringFromFormat:(NSString *)from;

/**
 *  转换日期格式， 默认原始格式为 yyyy-MM-dd HH:mm:ss
 *  目标格式   finalFormat
 */
- (NSString *)changeDateFormatWithFinalFormat: (NSString *)finalFormat;

- (NSDate *)dateFromFormatter:(NSString *)formatter;


- (void)arrangeInWeekWithFromat:(NSString *)format startDate:(NSDate **)start endDate:(NSDate **)endDate;
@end

